/*
 * Copyright (c) 2007 IJO Technologies Ltd.
 * www.ijotechnologies.com
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * IJO Technologies ("Confidential Information").
 * You shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement you
 * entered into with IJO Technologies.
 */

package com.iye.puretennis.pulltorefresh.custom;

import android.content.Context;
import android.content.res.TypedArray;
import com.iye.puretennis.R;
import com.iye.puretennis.pulltorefresh.library.PullToRefreshBase;
import com.iye.puretennis.pulltorefresh.library.internal.FlipLoadingLayout;

/**
 * @author Daiyu Chen
 */
public class CustomLoadingLayout extends FlipLoadingLayout {
    public CustomLoadingLayout(Context context, PullToRefreshBase.Mode mode, PullToRefreshBase.Orientation scrollDirection, TypedArray attrs) {
        super(context, mode, scrollDirection, attrs);
    }

    @Override
    protected String loadPullLabel(Context context, TypedArray attrs, PullToRefreshBase.Mode mode) {
        return "Custom pull label";
    }

    @Override
    protected String loadRefreshingLabel(Context context, TypedArray attrs, PullToRefreshBase.Mode mode) {
        return "Custom refreshing label";
    }

    @Override
    protected String loadReleaseLabel(Context context, TypedArray attrs, PullToRefreshBase.Mode mode) {
        return "Custom release label";
    }

    @Override
    protected int getDefaultDrawableResId() {
        return R.drawable.arrow_left;
    }
}
